
package com.dapeng.cleardatabackend.model.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 用户角色枚举
 *
 * @author dapeng
 */
@Getter
@AllArgsConstructor
public enum UserRoleEnum implements BaseEnum {

    USER(0, "普通用户"),
    ADMIN(1, "管理员"),
    SUPER_ADMIN(2, "超级管理员"),
    BAN(-1, "被封号");

    @JsonValue
    @EnumValue
    private final Integer code;
    private final String name;

    private static final long serialVersionUID = 1L;
}
